package com.ruoyi.web.core.utils;

import java.util.Objects;

/* loaded from: Message.class */
public class Message {
    private String code;
    private String form;
    private String to;
    private String content;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Message)) {
            return false;
        }
        Message other = (Message) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$code  = getCode();
        Object other$code = other.getCode();
        if (this$code == null) {
            if (other$code != null) {
                return false;
            }
        }
        else if (!this$code.equals(other$code)) {
            return false;
        }
        Object this$form  = getForm();
        Object other$form = other.getForm();
        if (this$form == null) {
            if (other$form != null) {
                return false;
            }
        }
        else if (!this$form.equals(other$form)) {
            return false;
        }
        Object this$to  = getTo();
        Object other$to = other.getTo();
        if (this$to == null) {
            if (other$to != null) {
                return false;
            }
        }
        else if (!this$to.equals(other$to)) {
            return false;
        }
        Object this$content  = getContent();
        Object other$content = other.getContent();
        return Objects.equals(this$content, other$content);
    }

    protected boolean canEqual(Object other) {
        return other instanceof Message;
    }

    public int hashCode() {
        Object $code    = getCode();
        int    result   = (59) + ($code == null ? 43 : $code.hashCode());
        Object $form    = getForm();
        int    result2  = (result * 59) + ($form == null ? 43 : $form.hashCode());
        Object $to      = getTo();
        int    result3  = (result2 * 59) + ($to == null ? 43 : $to.hashCode());
        Object $content = getContent();
        return (result3 * 59) + ($content == null ? 43 : $content.hashCode());
    }

    public String toString() {
        return "Message(code=" + getCode() + ", form=" + getForm() + ", to=" + getTo() + ", content=" + getContent() + ")";
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getForm() {
        return this.form;
    }

    public void setForm(String form) {
        this.form = form;
    }

    public String getTo() {
        return this.to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
